package com.johnboy.group.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.johnboy.group.salary.service.AccountService;
import com.salary.entity.Account;

@Controller
@RequestMapping("accoutController")
public class AccountController {

	@Autowired
	private AccountService accountServiceImpl;

	@RequestMapping("insert")
	public String getResult() throws Exception {
		Account account = new Account();
		account.setAccountName("aaa");
		account.setDescription("desss");
		account.setPassword("aaaaaaa");
		account.setRoleName("role1");
		account.setState(1);
		accountServiceImpl.insert(account);

		return "success";
	}
}
